
    function docres(win,doc){
      if (!win.addEventListener) return;
      function setFont() {
        let html = document.documentElement;

        const k = 750;
        html.style.fontSize = html.clientWidth / k * 100 + "px";
      }
      setFont();
      doc.addEventListener('DOMContentLoaded', function(){
        setFont()
      }, false);
      win.addEventListener('resize', function(){
        setFont()
      }, false);
      win.addEventListener('load', function(){
        setFont()
      }, false);
    }
    docres(window,document)